import * as actionTypes from '../actions/actionTypes'
const counterReducer=(state={num:0},action)=>{
    switch(action.type){
        case actionTypes.INCREMENT:
            return {...state,num:state.num+action.payload}
        default:
            return state
    }
}
export default counterReducer